<?php

namespace App\Http\Models\Dances;

use App\Http\Models\RequestValidator;
use Illuminate\Foundation\Http\FormRequest;

/*
 * DancesFrom  课程预约
 *
 * @auth Jinfeihu
 *
 * */

class DancesFrontendFrom extends RequestValidator
{
    public function authorize()
    {
        return true;
    }

//    public function failedValidation($validator)
//    {
//        $error = $validator->errors();
//        echo "<pre>";
//        print_r($error);
//        exit;
//    }

    public function rules()
    {
        return [
            'openId'    => 'required',
            'dancesId' => 'required'
        ];
    }

    public function messages()
    {
        return [
            'openId.required'    => "openId不能为空",
            'dancesId.required' => "课程ID不能为空"
        ];

    }
}
